package com.car.loan.project.xr.util.bo.business.after;

import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author huangding
 * @date 2020/2/26 22:27
 */
@Data
public class OverdueAdvancesBo {

    @ApiModelProperty(value = "业务id", required = true)
    @NotNull
    private Long loanId;

    @ApiModelProperty(value = "1=支出 2=收入", required = true)
    @NotNull
    @Min(1)
    @Max(2)
    private Integer type;

    @ApiModelProperty(value = "发生金额", required = true)
    @NotNull
    @Min(0)
    private BigDecimal amount;

    @ApiModelProperty("备注")
    private String remark;
}
